Ví dụ Chuỗi_truy_vấn

Nếu một form được nhúng trong một trang HTML như sau:

<form action="cgi-bin/test.cgi" method="get">  <input type="text" name="first" />  <input type="text" name="second" />  <input type="submit" /></form>

và người dùng chèn vào chuỗi "this is a field" và " was it clear (already)?" trong cả hai thuộc tính <input> first và second và nhấn nút gửi, chương trình test.cgi sẽ có query string như sau

first=this+is+a+field&second=was+it+clear%28already%29%3F.

Nếu các form được xử lý trên server bởi một CGI script, các script có thể sẽ thường nhận query string như là một biến môi trường tên là QUERY_STRING.

Tài liệu tham khảo

WikiPedia: Chuỗi_truy_vấn http://docs.oracle.com/javaee/6/api/javax/servlet/... http://tools.ietf.org/html/rfc3986#section-3 http://tools.ietf.org/html/rfc3986#section-3.4 http://www.w3.org/TR/1999/REC-html401-19991224/app... http://www.w3.org/TR/REC-html40/interact/forms.htm... http://www.w3.org/wiki/HTML/Elements/isindex //en.wikipedia.org/wiki/Category:CS1_maint:_Multip... https://stackoverflow.com/questions/1746507/author... https://httpd.apache.org/docs/2.2/mod/core.html#li... https://tools.ietf.org/html/rfc7230#section-3.1.1